<!doctype html>
<html>

<head>
	<meta charset="utf-8">
	<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
	<meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
	<title>小视频</title>
	<link rel="stylesheet" type="text/css" href="../c/aui.css" />
</head>
<style>
	html,
	body {
		background-color: transparent !important;
		width: 100%;
	}

</style>

<body>

<!-- <video id="video" src="http://img.news.suxiangw.com/0890ba9916e9c4b18587f4cd4aa72cb0.mp4" width="100%"  loop="loop" type="video/mp4"  preload="auto" webkit-playsinline="true" playsinline="true" playsinline x5-video-player-type="h5" x5-video-player-fullscreen="portraint" onerror="window.VIDEO_FAILED=1"  autoplay="autoplay"></video> -->

</body>
<script type="text/javascript" src="../j/api.js"></script>
<script type="text/javascript" src="../j/video.js"></script>
<script type="text/javascript">
var _root_name='member_video_add_info'
	apiready = function() {
		// 离开屏幕
		api.addEventListener({
			name: 'viewdisappear'
		}, function(ret, err) {
			if(_win_name == 1){
				scrollVideo.pause();
			}else if(_win_name == 2){
				oxPlayer.pause();
			}
		});
		var videoUrl = api.pageParam['videoUrl'] ? api.pageParam['videoUrl'] : '';
		if (!videoUrl) {
			return _alert('视频不存在', function(ret, err) {
				_close();
			})
		}

		if(api.systemType == 'ios'){
			$('body').html('<video id="video" src="' + videoUrl + '" width="100%" height="' + api.winHeight + 'px" loop="loop" type="video/mp4"  preload="auto" webkit-playsinline="true" playsinline="true" playsinline x5-video-player-type="h5" x5-video-player-fullscreen="portraint" onerror="window.VIDEO_FAILED=1"   autoplay="autoplay"></video>');
		}else{
			_video_open({url:videoUrl});
		}


		// play_init();
		// play(videoUrl,true);
//		_video_open(videoUrl);
		console.log(videoUrl)
		var url = 'member_video_add_info_text';
		// //url = 'index_video';
		api.openFrame({
			name: url,
			url: _h_w + url + '.html',
			rect: {
				x: 0,
				y: 0,
				w: 'auto',
				h: 'auto',
			},
			pageParam:api.pageParam,
			bgColor: 'rgba(0,0,0,0)',
		})
	}
</script>

</html>
